package com.test.agent;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.util.ClassUtils;

@Component
@Data
public class Config {

    public static String rootPath = ClassUtils.getDefaultClassLoader().getResource("").getPath().split("/config")[0];

    @Value("${platform.result.upload}")
    private String resultUrl;

    @Value("${script.git.url}")
    private String scriptUrl;

    @Value("${script.git.username}")
    private String scriptUserName;

    @Value("${script.git.password}")
    private String scriptPassWord;

    @Value("${script.git.location}")
    private String scriptLocation;
}
